package 作业二;

import java.util.Scanner;

public class Text {
	 public static void main(String[] args) throws Exception {
		        SequentailStack stack = new SequentailStack(10);
		
		       Scanner in = new Scanner(System.in);
        int temp;
		        for (int i = 0; i < 10; i++) {
		           System.out.println("请输入第" + (i + 1) + "个整数：");
		            temp = in.nextInt();
		            stack.push(temp);
	        }
		
	       while (!stack.isEmpty()) {
		            System.out.println(stack.pop());
		        }
		    }
}
